/********************************************************************************
* File Name:	mainwindow.cpp
* Description:	第7章实例训练
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1
* E_mail: openlinux2011@gmail.com
*
********************************************************************************/
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "owner.h"
#include "houserenter.h"
#include "searchrenter.h"
#include "searchhouse.h"
#include "showhouse.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_btnOwnerInfo_clicked()
{
    owner *ow = new owner();
    ow->show();
}

void MainWindow::on_btnHouseInfo_clicked()
{
    showhouse *sh = new showhouse();
    sh->show();
}

void MainWindow::on_btnHouseSearch_clicked()
{
    searchhouse *sh = new searchhouse();
    sh->show();
}

void MainWindow::on_btnClientSearch_clicked()
{
    searchrenter *sr = new searchrenter();
    sr->show();
}

void MainWindow::on_btnquit_clicked()
{
    this->close();
}
